package EPIRPConstDefs;


/**
 * Generated from IDL struct "IRPElement".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class IRPElementHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(EPIRPConstDefs.IRPElementHelper.id(),"IRPElement",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("irp_id", EPIRPConstDefs.IRPIdHelper.type(), null),new org.omg.CORBA.StructMember("irpClassName", EPIRPConstDefs.IRPClassNameTypeHelper.type(), null),new org.omg.CORBA.StructMember("irpVersion", ManagedGenericIRPConstDefs.VersionNumberHelper.type(), null),new org.omg.CORBA.StructMember("irpManagementScope", EPIRPConstDefs.IRPManagementScopeOptHelper.type(), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final EPIRPConstDefs.IRPElement s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static EPIRPConstDefs.IRPElement extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:EPIRPConstDefs/IRPElement:1.0";
	}
	public static EPIRPConstDefs.IRPElement read (final org.omg.CORBA.portable.InputStream in)
	{
		EPIRPConstDefs.IRPElement result = new EPIRPConstDefs.IRPElement();
		result.irp_id=in.read_string();
		result.irpClassName=in.read_string();
		result.irpVersion=in.read_string();
		result.irpManagementScope=EPIRPConstDefs.IRPManagementScopeOptHelper.read(in);
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final EPIRPConstDefs.IRPElement s)
	{
		out.write_string(s.irp_id);
		out.write_string(s.irpClassName);
		out.write_string(s.irpVersion);
		EPIRPConstDefs.IRPManagementScopeOptHelper.write(out,s.irpManagementScope);
	}
}
